//
//  BirthdayModel.h
//  CangLongWnnianli
//
//  Created by 暗流澎涌 on 2025/1/27.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface BirthdayModel : NSObject

@property (nonatomic, strong) NSString *name;           // 姓名
@property (nonatomic, strong) NSString *relationship;   // 关系
@property (nonatomic, assign) NSInteger lunarMonth;     // 农历月
@property (nonatomic, assign) NSInteger lunarDay;       // 农历日
@property (nonatomic, assign) NSInteger birthYear;      // 出生年
@property (nonatomic, strong) NSString *note;           // 备注
@property (nonatomic, assign) BOOL isEnabled;           // 是否启用提醒
@property (nonatomic, assign) BOOL notifyOnDay;         // 生日当天提醒
@property (nonatomic, assign) BOOL notifyOneDayBefore;  // 提前一天提醒
@property (nonatomic, assign) BOOL notifyOneWeekBefore; // 提前一周提醒
@property (nonatomic, strong) NSDate *createdDate;      // 创建时间

// 计算距离生日的天数
- (NSInteger)daysUntilBirthday;

// 获取农历月份名称
- (NSString *)lunarMonthName;

// 获取农历日期名称
- (NSString *)lunarDayName;

// 获取公历生日日期
- (NSDate *)solarBirthdayDate;

// 转换为字典
- (NSDictionary *)toDictionary;

// 从字典创建模型
+ (instancetype)fromDictionary:(NSDictionary *)dict;

@end

NS_ASSUME_NONNULL_END 